home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tcoop.arc / TCOOP2.ARC / SCRNSTY.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-26  |  1.6 KB  |  76 lines

  1. // Screen style definitions
  2.  
  3. #ifndef H_SCRNSTY
  4. #define H_SCRNSTY
  5.  
  6. inline unsigned char ForeGround(unsigned char attr)
  7. {
  8.   return attr & 0x0f;
  9. }
  10.  
  11. inline unsigned char BackGround(unsigned char attr)
  12. {
  13.   return (attr >> 4) & 0x0f;
  14. }
  15.  
  16. enum LineChar { 
  17.   Ulc, Llc, Urc, Lrc, LTee, RTee, UpTee, DnTee, HzBar, VtBar
  18. };
  19.  
  20. extern char LineChars[4][10];
  21.  
  22. enum ScrollDir  { UpScroll, DnScroll, LeftScroll, RightScroll };
  23.  
  24. struct ColorPak { unsigned char Bc, Wc, Tc, Pc, Fc; };
  25.  
  26. // Border styles
  27.  
  28. const int NoBorder = 0x00; // For both text and graphics
  29. const int Single   = 0x10; // For text mode
  30. const int Double   = 0x20; // For text mode
  31. const int Dashed   = 0x30; // For text mode
  32. const int Solid    = 0x10; // For graphics mode
  33. const int Recessed = 0x20; // For graphics mode
  34. const int Relief   = 0x30; // For graphics mode
  35.  
  36. // Frame styles
  37.  
  38. const int Swappable    = 0x01;
  39. const int Closeable    = 0x02;
  40. const int SEShadow     = 0x04;
  41. const int NEShadow     = 0x08;
  42. const int NWShadow     = 0x10;
  43. const int SWShadow     = 0x20;
  44. const int OutlineMove  = 0x40;
  45. const int BorderPrompt = 0x80;
  46. const int Stretchable  = 0x100;
  47.  
  48. // A shadow bit mask
  49.  
  50. const int AnyShadow = SEShadow + NEShadow + NWShadow + SWShadow;
  51.  
  52. // A set of predefined color packs and styles
  53.  
  54. extern ColorPak BlueColors;
  55. extern ColorPak CyanColors;
  56. extern ColorPak RedColors;
  57. extern ColorPak InvColors;
  58. extern ColorPak MonoColors;
  59. extern ColorPak ErrColors;
  60. extern ColorPak MsgColors;
  61. extern ColorPak GrphColors;
  62. extern ColorPak DefColors;
  63.  
  64. extern ColorPak DefColors;
  65. extern int WithShadow;
  66. extern int WindowStyle;
  67. extern int ButtonStyle;
  68.  
  69. #endif
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.